<h1>Listing djinns</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Hp</th>
    <th>Pp</th>
    <th>Att</th>
    <th>Def</th>
    <th>Agil</th>
    <th>Luck</th>
  </tr>

<% for djinn in @djinns %>
  <tr>
    <td><img src="images/icons/<%=djinn.element%>.gif">&nbsp;<%=h djinn.name %></td>
    <td><%=h djinn.hp %></td>
    <td><%=h djinn.pp %></td>
    <td><%=h djinn.att %></td>
    <td><%=h djinn.def %></td>
    <td><%=h djinn.agil %></td>
    <td><%=h djinn.luck %></td>
    <td><%= link_to 'Show', djinn %></td>
    <td><%= link_to 'Edit', edit_djinn_path(djinn) %></td>
    <td><%= link_to 'Destroy', djinn, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New djinn', new_djinn_path %>
